package com.suptrack.service;

import javax.ejb.EJB;
import javax.ejb.Stateless;

import com.suptrack.dao.CarDao;
import com.suptrack.entity.Car;



@Stateless
public class CarService {
	@EJB
	CarDao cardao;
	
	
	public void addCarService(Car _car){
		cardao.addCar(_car);
	}
	public Long getNumberOfCarService(){
		return cardao.getNumberOfCar();
		
	}
	 public void deleteCarbyId(long id){
		 cardao.deleteCarbyId(id);
	 }
	 public void editCarService(Car _car){
		 cardao.editCar(_car);
	 }
	 public Car getCarInfoService(long id)
	 {
		return cardao.getCarInfo(id);
	 }
	 public void deleteCarService(Car _car){
		 cardao.deleteCar(_car);
	 }
}
